package com.xiaoxi.adaptermode.adapter;

import com.xiaoxi.adaptermode.target.SocketTarget;
import com.xiaoxi.adaptermode.adaptee.SocketAdaptee;

/**
 * @Author xiaoxi
 * @ProjectName design_mode
 * @PackageName com.xiaoxi.adaptermode.adapter
 * @ClassName PrintBanner
 * @Description TODO
 * @Date 2023/3/7 14:54
 * @Version 1.0
 */
public class SocketClassAdapter extends SocketAdaptee implements SocketTarget {

    @Override
    public void commonTwoHoleSocket() {
        commonThreeHoleSocket();
        System.out.println("-----------------开始转换------------------");
        System.out.println("适配器支持：二孔插座");
    }

    @Override
    public void roundSocket() {
        commonThreeHoleSocket();
        System.out.println("-----------------开始转换------------------");
        System.out.println("适配器支持：圆孔插座");
    }
}
